const {
  decrypt_str,
  decrypt_str_name
} = require('./ob_func');

(function () {
  var h = {
    mjvUe: 'while (true) {}',
    lcBTE: 'counter',
    qKkRj: function (a, b) {
      return a === b;
    },
    gArHv: 'ldTGV',
    gkQyt: 'function *\\( *\\)',
    waTXw: '\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)',
    xQdrI: function (a, b) {
      return a(b);
    },
    HxhYu: 'init',
    VEUae: function (a, b) {
      return a + b;
    },
    EixhQ: 'chain',
    lpeAC: function (a, b) {
      return a + b;
    },
    uabzJ: 'input',
    SNSfE: function (a, b) {
      return a !== b;
    },
    nLmMU: 'FisEb',
    iUcqL: function (a, b) {
      return a(b);
    },
    BhEiE: function (a) {
      return a();
    },
    ceqTM: function (a) {
      return a();
    },
    HbhJb: 'RXnAV',
    KLkij: function (a, b, c) {
      return a(b, c);
    },
    CTIry: '此网页受\u3010爱锭云盾 V1.0 动态版\u3011保护',
    rIBCD: function (a, b) {
      return a + b;
    },
    hcRMn: 'aiding_win',
    ouCfr: function (a, b) {
      return a + b;
    },
    qtzBv: function (a, b) {
      return a(b);
    },
    mCtQz: function (a, b) {
      return a / b;
    },
    OucIr: 'sign=',
    HTvtt: '; path=/'
  };

  var a = function () {
    var a = {
      djtPh: h['mjvUe'],
      pAWYM: h['lcBTE'],
      XJDJR: function (a, b) {
        return h['qKkRj'](a, b);
      },
      MvjwP: h['gArHv']
    };
    var b = !![];
    return function (c, d) {
      var e = b ? function () {
        var b = {
          SLztm: a['djtPh'],
          SPfky: a['pAWYM']
        };

        if (a['XJDJR'](a['MvjwP'], a['MvjwP'])) {
          if (d) {
            var e = d['apply'](c, arguments);
            d = null;
            return e;
          }
        } else {
          return function (a) {}['constructor'](ZLYUtz['SLztm'])['apply'](ZLYUtz['SPfky']);
        }
      } : function () {};
      b = ![];
      return e;
    };
  }();

  (function () {
    var b = {
      ASSeo: function (a) {
        return h['ceqTM'](a);
      }
    };

    if (h['qKkRj'](h['HbhJb'], h['HbhJb'])) {
      h['KLkij'](a, this, function () {
        var a = new RegExp(h['gkQyt']);
        var b = new RegExp(h['waTXw'], 'i');
        var c = h['xQdrI'](_$oc, h['HxhYu']);

        if (!a['test'](h['VEUae'](c, h['EixhQ'])) || !b['test'](h['lpeAC'](c, h['uabzJ']))) {
          if (h['SNSfE'](h['nLmMU'], h['nLmMU'])) {
            return !![];
          } else {
            h['iUcqL'](c, '0');
          }
        } else {
          h['BhEiE'](_$oc);
        }
      })();
    } else {
      DnPraC['ASSeo'](_$oc);
    }
  })();

  console['log'](h['CTIry']);
  var b = new Date()['valueOf']();
  token = window['btoa'](h['rIBCD'](h['hcRMn'], h['iUcqL'](String, b)));
  md = h['iUcqL'](hex_md5, window['btoa'](h['ouCfr'](h['hcRMn'], h['qtzBv'](String, Math['round'](h['mCtQz'](b, 1000))))));
  document['cookie'] = h['ouCfr'](h['ouCfr'](h['ouCfr'](h['ouCfr'](h['ouCfr'](h['ouCfr'](h['OucIr'], Math['round'](h['mCtQz'](b, 1000))), '~'), token), '|'), md), h['HTvtt']);
  location['reload']();
})();

function _$oc(d) {
  var a = {
    ZwgvT: 'function *\\( *\\)',
    oJTlA: '\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)',
    mDSQI: function (a, b) {
      return a(b);
    },
    ZHejX: 'init',
    RUScI: function (a, b) {
      return a + b;
    },
    kvvkC: 'chain',
    mLdtT: function (a, b) {
      return a + b;
    },
    wtpzZ: 'input',
    QkOGT: function (a) {
      return a();
    },
    FAADu: function (a, b) {
      return a === b;
    },
    BZVfi: 'UCoWx',
    GItGR: function (a, b) {
      return a === b;
    },
    MafQv: 'GEpOr',
    IJOKZ: 'BYthG',
    PUtNX: 'string',
    KYkcj: 'while (true) {}',
    NZyvC: 'counter',
    qEBNf: function (a, b) {
      return a !== b;
    },
    uzBiA: function (a, b) {
      return a + b;
    },
    BDjnO: function (a, b) {
      return a / b;
    },
    OBNWc: 'length',
    sJXUY: function (a, b) {
      return a % b;
    },
    ZrOcn: function (a, b) {
      return a + b;
    },
    vyqAa: 'debu',
    JCwQW: 'gger',
    CaleL: 'action',
    BWMEB: 'stateObject',
    AjPDa: function (a, b) {
      return a(b);
    },
    wOBRc: 'UeIIR',
    dzXSH: 'UPcmA',
    wkLyw: 'hHZJR'
  };

  function b(c) {
    var f = {
      fQTrk: a['ZwgvT'],
      wnUEn: a['oJTlA'],
      nJvXo: function (b, c) {
        return a['mDSQI'](b, c);
      },
      gTlWp: a['ZHejX'],
      WDkKQ: function (b, c) {
        return a['RUScI'](b, c);
      },
      TWmMf: a['kvvkC'],
      DzwJt: function (b, c) {
        return a['mLdtT'](b, c);
      },
      gTzvf: a['wtpzZ'],
      vWnCD: function (b) {
        return a['QkOGT'](b);
      },
      RXUOH: function (b, c) {
        return a['FAADu'](b, c);
      },
      bbXmZ: a['BZVfi']
    };

    if (a['GItGR'](a['MafQv'], a['IJOKZ'])) {
      var e = firstCall ? function () {
        if (fn) {
          var a = fn['apply'](context, arguments);
          fn = null;
          return a;
        }
      } : function () {};
      firstCall = ![];
      return e;
    } else {
      if (a['GItGR'](typeof c, a['PUtNX'])) {
        return function (a) {}['constructor'](a['KYkcj'])['apply'](a['NZyvC']);
      } else {
        if (a['qEBNf'](a['uzBiA']('', a['BDjnO'](c, c))[a['OBNWc']], 1) || a['GItGR'](a['sJXUY'](c, 20), 0)) {
          (function () {
            return !![];
          })['constructor'](a['ZrOcn'](a['vyqAa'], a['JCwQW']))['call'](a['CaleL']);
        } else {
          (function () {
            if (f['RXUOH'](f['bbXmZ'], f['bbXmZ'])) {
              return ![];
            } else {
              var a = new RegExp(f['fQTrk']);
              var b = new RegExp(f['wnUEn'], 'i');
              var c = f['nJvXo'](_$oc, f['gTlWp']);

              if (!a['test'](f['WDkKQ'](c, f['TWmMf'])) || !b['test'](f['DzwJt'](c, f['gTzvf']))) {
                f['nJvXo'](c, '0');
              } else {
                f['vWnCD'](_$oc);
              }
            }
          })['constructor'](a['ZrOcn'](a['vyqAa'], a['JCwQW']))['apply'](a['BWMEB']);
        }
      }

      a['AjPDa'](b, ++c);
    }
  }

  try {
    if (a['qEBNf'](a['wOBRc'], a['dzXSH'])) {
      if (d) {
        if (a['qEBNf'](a['wkLyw'], a['wkLyw'])) {
          a['AjPDa'](b, 0);
        } else {
          return b;
        }
      } else {
        a['AjPDa'](b, 0);
      }
    } else {
      (function () {
        return ![];
      })['constructor'](a['ZrOcn'](a['vyqAa'], a['JCwQW']))['apply'](a['BWMEB']);
    }
  } catch (a) {}
}